{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css?random={extendSetting('random')}">
<div class="ltcms_container">
    <div class="container_title">
        <form action="{LTCMS_ROUTE_PREFIX}/category" method="get" class="ltcms_search">
            <input type="hidden" name="dataType" value="{if isset($request['dataType'])}{$request['dataType']}{/if}" >
            <input type="hidden" name="dataId" value="{if isset($request['dataId'])}{$request['dataId']}{/if}" >
            <input name="name" type="text" placeholder="请输入名称" {if isset($request['name'])} value="{$request['name']}" {/if}  >
            <button type="submit" class="btn3">搜索</button>
        </form>
        <!--<ul class="title_tab1">-->
            <!--<li class="on">我的插件</li>-->
            <!--<li>免费插件</li>-->
            <!--<li>商业插件</li>-->
        <!--</ul>-->
    </div>
    <section class="ltcms_content">
        <div class="ltcms_list">
            <table class="list_table">
                <colgroup>
                    <col width="100px" >
                    <col width="100px" >
                    <col width="160px" >
                    <col width="160px" >
                    <!--<col width="100px" >-->
                    <col width="100px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col >
                </colgroup>
                <tr>
                    <td class="th"><input id="selectAll" type="checkbox"></td>
                    <td class="th">序号</td>
                    <td class="th">名称</td>
                    <td class="th">缩略图</td>
                    <!--<th>索引</th>-->
                    <td class="th">分类目录</td>
                    <td class="th">级别</td>
                    <td class="th">信息量</td>
                    <td class="th">子类</td>
                    <td class="th">排序</td>
                    <td class="th">状态</td>
                    <td class="th">操作</td>
                </tr>
                {if $listData}
                {foreach  $listData["data"] $key $val}
                    <tr>
                        <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                        <td>{$val['id']}</td>
                        <td>{$val['name']}</td>
                        <td>{$val['thumbnail']}</td>
                        <!--<td>{$val['fieldIndex']}</td>-->
                        <td>{$val['catDir']}</td>
                        <td>{$val['level']}</td>
                        <td>{$val['item']}</td>
                        <td>{$val['child_count']}</td>
                        <td>{$val['sort']}</td>
                        <td>{$val['disabledFormat']}</td>
                        <td>
                            <div class="btn4">
                                <a href="{LTCMS_ROUTE_PREFIX}/category/edit?id={$val['id']}&dataType={$request['dataType']}&dataId={$request['dataId']}">
                                    <i class="btn4-img iconfont icon-bianji" title="编辑"></i>
                                </a>
                                <i onClick="runApi(this)" data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/category?id={$val['id']}" data-method="delete" alt="" class="btn4-img del iconfont icon-delete" title="删除"></i>
                            </div>
                        </td>
                    </tr>
                {/foreach}
                {/if}
            </table>
        </div>
    </section>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{LTCMS_ROUTE_PREFIX}/category/create?dataType={$request['dataType']}&dataId={$request['dataId']}"><button class="btn2 trash">添加</button></a>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/category" data-method="delete" >批量删除</button>
        </div>
        <div class="pages">
            {if $listData}
            {php  echo app("P_page")->getPageBarV2($listData);}
            {/if}
        </div>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/list.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}